package campus.service;

import campus.model.Menu;
import campus.model.User;
import campus.model.UserExample;

import java.util.List;

/**
 * @author VULCAN
 * @create 2020-05-06 22:26
 * @desc 用户接口
 **/
public interface UserService {

    List<User> selectByExample(UserExample example);
    /**
     * @name  菜单
     * @Author VULCAN
     * @Date 2020/5/6 23:39
     */
    List<Menu> findMenu(String id);

    /**
     * @name  登录
     * @Author VULCAN
     * @Date 2020/5/6 23:39
     */
    User login(User user);
    /**
     * @name  注册
     * @Author VULCAN
     * @Date 2020/5/6 23:39
     */
    int zhuce(User user);

    void cz(User user);
    /**
     * 查询单个
     * @param id
     * @return
     */
    User findById(String id);

    void userupdate(User user);
}
